﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Bluebunnie.Library.Master
{
    /// <summary>
    /// Interaction logic for test.xaml
    /// </summary>
    public partial class test : Window
    {
        public test()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

            Bluebunnie.Library.Master.ProjectDataSet projectDataSet = ((Bluebunnie.Library.Master.ProjectDataSet)(this.FindResource("projectDataSet")));
            // Load data into the table tbl_item. You can modify this code as needed.
            Bluebunnie.Library.Master.ProjectDataSetTableAdapters.tbl_itemTableAdapter projectDataSettbl_itemTableAdapter = new Bluebunnie.Library.Master.ProjectDataSetTableAdapters.tbl_itemTableAdapter();
            projectDataSettbl_itemTableAdapter.Fill(projectDataSet.tbl_item);
            System.Windows.Data.CollectionViewSource tbl_itemViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("tbl_itemViewSource")));
            tbl_itemViewSource.View.MoveCurrentToFirst();
            // Load data into the table tbl_price_level. You can modify this code as needed.
            Bluebunnie.Library.Master.ProjectDataSetTableAdapters.tbl_price_levelTableAdapter projectDataSettbl_price_levelTableAdapter = new Bluebunnie.Library.Master.ProjectDataSetTableAdapters.tbl_price_levelTableAdapter();
            projectDataSettbl_price_levelTableAdapter.Fill(projectDataSet.tbl_price_level);
            System.Windows.Data.CollectionViewSource tbl_itemtbl_price_levelViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("tbl_itemtbl_price_levelViewSource")));
            tbl_itemtbl_price_levelViewSource.View.MoveCurrentToFirst();
        }
    }
}
